package com.mm.fam.web.service;

import com.mm.fam.web.base.ResponseModel;
import org.springframework.http.ResponseEntity;

public interface ContainerService {

    /**
     * 启动容器
     * @param nodeId 节点id
     * @return 启动结果
     */
    ResponseEntity<ResponseModel<Object>> startContainer(int nodeId);

    /**
     * 停止容器
     * @param nodeId 节点id
     * @return 调用结果
     */
    ResponseEntity<ResponseModel<Object>> stopContainer(int nodeId);

    /**
     * 重启容器
     * @param nodeId 节点id
     * @return 调用结果
     */
    ResponseEntity<ResponseModel<Object>> restartContainer(int nodeId);
}
